CREATE TABLE [dbo].[tb_ServiciosHistoricosAudit]
(
[idServicioHistoricoAudit] [int] NOT NULL IDENTITY(1, 1),
[idServicioHistorico] [int] NOT NULL,
[idAgente] [int] NOT NULL,
[NumeroOrden] [int] NULL,
[CargoGenerico] [int] NULL,
[AsignaturaGenerica] [int] NULL,
[Horas] [int] NULL,
[UbicacionOriginal] [int] NULL,
[DescrUbic] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Localidad] [int] NULL,
[SituacionRevista] [int] NULL,
[FechaAlta] [datetime] NULL,
[Baja] [varchar] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[FechaBaja] [datetime] NULL,
[FechaTermino] [datetime] NULL,
[NormaBaja] [int] NULL,
[CausaBaja] [int] NULL,
[CausaAlta] [int] NULL,
[TipoServicio] [int] NULL,
[Sistema] [int] NULL,
[RegimenLaboral] [int] NULL,
[Financiamiento] [int] NULL,
[Presupuesto] [int] NULL,
[Finalidad] [int] NULL,
[TipoDeFuncion] [int] NULL,
[RegimenSalarial] [int] NULL,
[RegimenDesignacion] [int] NULL,
[NroAfiliadoJubilacion] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CajaJubilacion] [int] NULL,
[NormaAlta] [int] NULL,
[CategoriaTitulo] [int] NULL,
[FechaDeCarga9] [datetime] NOT NULL CONSTRAINT [DF_tb_ServiciosHistoricosAudit_FechaDeAlta] DEFAULT (getdate()),
[ServicioAgente] [int] NULL,
[Nivel] [int] NULL,
[Ciclo] [int] NULL,
[Modalidad] [int] NULL,
[Zona] [int] NULL,
[grupoIncumbencias] [int] NOT NULL,
[FechaPresentacion] [datetime] NULL,
[Controlado] [varchar] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Cargo] [int] NULL,
[FechaModificacion] [datetime] NULL,
[Usuario] [int] NULL,
[ZonaJunta] [int] NULL,
[Operacion] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[FechaOperacion] [datetime] NOT NULL,
[UsuarioNT] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL CONSTRAINT [DF__tb_ServiciosHistoricosAudit__Usuar__7751F054] DEFAULT (suser_sname())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb_ServiciosHistoricosAudit] ADD CONSTRAINT [PK_tb_ServiciosHistoricosAudit] PRIMARY KEY CLUSTERED  ([idServicioHistoricoAudit]) ON [PRIMARY]
GO
